package com.thread.test;

import java.util.concurrent.CountDownLatch;

/**
 * @Author milian
 * @Date 2021/8/9 0009 10:55
 */
public class XIaoMing extends Thread{
    private CountDownLatch countDownLatch;
    public XIaoMing(CountDownLatch countDownLatch){
        this.countDownLatch=countDownLatch;
    }
    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("小明的进度条加载到100%");
        countDownLatch.countDown();
    }
}
